package com.ruoyi.cat.service;

import com.ruoyi.cat.domain.AdTicketOrder;
import com.ruoyi.cat.domain.DTO.TicketOrderDTO;
import com.ruoyi.cat.domain.VO.TicketOrderVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 折扣订单Service接口
 * 
 * @author ruoyi
 * @date 2025-07-16
 */
public interface IAdTicketOrderService 
{
    /**
     * 查询折扣订单
     * 
     * @param id 折扣订单主键
     * @return 折扣订单
     */
    public AdTicketOrder selectAdTicketOrderById(Long id);

    /**
     * 查询折扣订单列表
     * 
     * @param adTicketOrder 折扣订单
     * @return 折扣订单集合
     */
    public List<AdTicketOrder> selectAdTicketOrderList(AdTicketOrder adTicketOrder);

    /**
     * 新增折扣订单
     * 
     * @param adTicketOrder 折扣订单
     * @return 结果
     */
    public int insertAdTicketOrder(AdTicketOrder adTicketOrder);

    /**
     * 修改折扣订单
     * 
     * @param adTicketOrder 折扣订单
     * @return 结果
     */
    public int updateAdTicketOrder(AdTicketOrder adTicketOrder);


    public int updateAdTicketOrderByOrderCode(AdTicketOrder adTicketOrder);


    public AdTicketOrder selectAdTicketByOrderCode(String orderCode);


    public AdTicketOrder selectAdTicketByRefundOrder(String refundOrder);


    /**
     * 批量删除折扣订单
     * 
     * @param ids 需要删除的折扣订单主键集合
     * @return 结果
     */
    public int deleteAdTicketOrderByIds(Long[] ids);

    /**
     * 删除折扣订单信息
     * 
     * @param id 折扣订单主键
     * @return 结果
     */
    public int deleteAdTicketOrderById(Long id);


    List<TicketOrderDTO> selectAdTicketOrderByOrderCode(TicketOrderVO ticketOrderVO);

}
